<template>

    <el-dialog title="查看图片" :visible="photoShow" @close="dialogClose" width="20%">
        <el-image style="width: 270px; height: 240px; margin: 0 auto;" :src="imgSrc"></el-image>
    </el-dialog>

</template>
<script>
export default {
    data () {
        return {
            imgSrc: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
        };
    },
    props: {
        photoShow: {
            type: Boolean
        },
    },
    methods: {
        dialogClose () {
            this.$emit('dialogClose');
        },

    },

}

</script>
<style lang="less" scoped>

</style>